]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lint: Enforce camelCase
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 28 Jan 2019 04:52:24 +0000 (05:52 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 12 Jul 2019 16:01:07 +0000 (16:01 +0000)
All variables should be in camelCase, so configure the corresponding
rule to enforce this. Exempt properties for now, to accommodate the
existing practice of using C-style underscore names for construct
properties of introspected objects.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/609

lint/eslintrc-shell.json

index c5bed8690ac59bbddfb1b01a5fd3aa38c9c36ddc..194966b13e25e44d2664d3f0bf7a295fd7df65ff 100644 (file)
@@ -1,5 +1,12 @@
 {
     "rules": {
+        "camelcase": [
+            "error",
+            {
+                "properties": "never",
+                "allow": ["^vfunc_", "^on_"]
+            }
+        ],
         "object-curly-spacing": [
             "error",
             "always"